package ec.edu.udla.fichamedica.client;

import java.util.ArrayList;
import java.util.List;

import ec.edu.udla.fichamedica.domain.DocumentType;
import ec.edu.udla.fichamedica.domain.GenderType;

public class EnumUtil {

	public static List<DocumentType> getDocumentTypes()
	{
		
		List<DocumentType> documentTypes = new ArrayList<DocumentType>();
		DocumentType [] docs = DocumentType.values();
		for(int i=0 ;i<docs.length;i++){
			documentTypes.add(docs[i]);
		}
		
		return documentTypes;
		
	}
	
	
	public static List<GenderType> getGenderTypes()
	{
		
		List<GenderType> genderType = new ArrayList<GenderType>();
		GenderType [] docs = GenderType.values();
		for(int i=0 ;i<docs.length;i++){
			genderType.add(docs[i]);
		}
		
		return genderType;
		
	}
}
